package sv.gob.mh.dgii.model;

// Generated 07-08-2013 11:08:04 AM by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcSocioTmp generated by hbm2java
 */
@Entity
@Table(name = "RC_SOCIO_TMP", schema = "RUC")
public class RcSocioTmp implements java.io.Serializable {

	private RcSocioTmpId id;
	private RcRucTmp rcRucTmp;
	private String nitSocio;
	private String faParticipacion;
	private String CUsuario;
	private BigDecimal VPorcPart;
	private Date fhIngreso;
	private String NFolio;
	private Date fiSocio;
	private Date ffSocio;

	public RcSocioTmp() {
	}

	public RcSocioTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	public RcSocioTmp(RcRucTmp rcRucTmp, String nitSocio,
			String faParticipacion, String CUsuario, BigDecimal VPorcPart,
			Date fhIngreso, String NFolio, Date fiSocio, Date ffSocio) {
		this.rcRucTmp = rcRucTmp;
		this.nitSocio = nitSocio;
		this.faParticipacion = faParticipacion;
		this.CUsuario = CUsuario;
		this.VPorcPart = VPorcPart;
		this.fhIngreso = fhIngreso;
		this.NFolio = NFolio;
		this.fiSocio = fiSocio;
		this.ffSocio = ffSocio;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ICorrelativo", column = @Column(name = "I_CORRELATIVO", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "nit", column = @Column(name = "NIT", nullable = false, length = 14)) })
	public RcSocioTmpId getId() {
		return this.id;
	}

	public void setId(RcSocioTmpId id) {
		this.id = id;
	}

	@OneToOne(fetch = FetchType.LAZY)
	@PrimaryKeyJoinColumn
	public RcRucTmp getRcRucTmp() {
		return this.rcRucTmp;
	}

	public void setRcRucTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	@Column(name = "NIT_SOCIO", length = 14)
	public String getNitSocio() {
		return this.nitSocio;
	}

	public void setNitSocio(String nitSocio) {
		this.nitSocio = nitSocio;
	}

	@Column(name = "FA_PARTICIPACION", length = 4)
	public String getFaParticipacion() {
		return this.faParticipacion;
	}

	public void setFaParticipacion(String faParticipacion) {
		this.faParticipacion = faParticipacion;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCUsuario() {
		return this.CUsuario;
	}

	public void setCUsuario(String CUsuario) {
		this.CUsuario = CUsuario;
	}

	@Column(name = "V_PORC_PART", precision = 7, scale = 4)
	public BigDecimal getVPorcPart() {
		return this.VPorcPart;
	}

	public void setVPorcPart(BigDecimal VPorcPart) {
		this.VPorcPart = VPorcPart;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhIngreso() {
		return this.fhIngreso;
	}

	public void setFhIngreso(Date fhIngreso) {
		this.fhIngreso = fhIngreso;
	}

	@Column(name = "N_FOLIO", length = 12)
	public String getNFolio() {
		return this.NFolio;
	}

	public void setNFolio(String NFolio) {
		this.NFolio = NFolio;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FI_SOCIO", length = 7)
	public Date getFiSocio() {
		return this.fiSocio;
	}

	public void setFiSocio(Date fiSocio) {
		this.fiSocio = fiSocio;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FF_SOCIO", length = 7)
	public Date getFfSocio() {
		return this.ffSocio;
	}

	public void setFfSocio(Date ffSocio) {
		this.ffSocio = ffSocio;
	}

}
